/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ar.com.educacionit.vehiculos.util;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Educacionit
 */
public class MngrRecursos {
    public static List getColores() throws IOException{
    List color= new ArrayList();
    String path="/ar/com/educacionit/vehiculos/recursos/colores.txt";
    InputStreamReader isr= new InputStreamReader(MngrRecursos.class.getResourceAsStream(path));
    BufferedReader br= new BufferedReader(isr);

    String linea=br.readLine();
    while((linea=br.readLine())!=null){
        color.add(linea);
    }
    return color;
    }

public static List getMarca() throws IOException{
    List marca= new ArrayList();
    String path="/ar/com/educacionit/vehiculos/recursos/marca.txt";
    InputStreamReader isr= new InputStreamReader(MngrRecursos.class.getResourceAsStream(path));
    BufferedReader br= new BufferedReader(isr);

    String linea;
    while((linea=br.readLine())!=null){
        marca.add(linea);
    }
    return marca;
    }

}